package basic.arch.component.lock.distributed;

import basic.arch.component.lock.aop.annotation.Lock;
import basic.arch.component.lock.config.CurrentLockSettings;

public interface DistributionLock {

    public boolean tryLock(CurrentLockSettings currentLockSettings);
    
    public void unlock(String key);
    
    public Lock.DisstributionLockType getType();
    
}
